#ifndef CMENU_H
#define CMENU_H

#include <QMenu>

class CMenu : public QMenu {
    Q_OBJECT
public:
    explicit CMenu(QWidget *parent = nullptr);
    explicit CMenu(const QString &title, QWidget *parent = nullptr);
    ~CMenu();

private:
    void init();

#ifdef Q_OS_WINDOWS
    bool m_hasInitWindow;
#endif
    virtual void winIdChangeEvent(QEvent *event);

    bool nativeEvent(const QByteArray &eventType, void *message, long *result) override;
    void paintEvent(QPaintEvent *event) override;

    bool event(QEvent *event) override;

signals:
};

#endif // CMENU_H
